include ../Makefile.config

all: 	MG_types.o \
		MG.o \
		naive_pairwise.o \
		coupled_pairwise.o \
		modified_pairwise.o \
		naive_neighbor.o\
		modified_neighbor.o \
		prolong.o\
		coarsen.o 

INC = -I../utils -I../precond

%_pairwise.o: aggregate/%_pairwise.cpp
	$(CXX) $(INC) -I./ $(CFLAGS) -c $<

%_neighbor.o: aggregate/%_neighbor.cpp
	$(CXX) $(INC) -I./ $(CFLAGS) -c $<

%.o: %.cpp 
	$(CXX) $(INC) $(CFLAGS) $(DEBUG_OPT) -c $<

clean:
	rm -rf *.so *.o

distclean: clean